package myCone;

 
import text.Circle;

 
public class Cone {	

 
	Circle c;

 
    public double height;

 
    public Cone(Circle bottom, double height) {

 
        this.c = bottom;

 
        this.height = height;

 
    }

 
    public Cone(double r, double height) {

 
        this.c = new Circle(r);

 
        this.height = height;

 
    }

 
    public double getvolume() {

 
        return (height*c.getarea())/3;

 
    }

 
    public double getbiaomianji() {

 
    	double l = Math.sqrt(height * height + c.radius * c.radius);

 
    	return 3.14*l*c.radius+c.getarea();

 
    }

 
   public double getradius() {

 
 
    	return c.radius;

 
    }

 
	

 
}